//
#include<stdio.h>
#include<stdlib.h>
//定义一个链表
struct Node {
    int val;
    struct Node *next;
    struct Node *random;
};
typedef struct Node ListNode;
//打印链表
void ListPrint(ListNode* phead)
{
    ListNode* pcur = phead;
    while(pcur)
    {
        printf("%d->",pcur->val);
        pcur = pcur->next;
    }
    printf("NULL\n");
}
//复制链表函数
struct Node* copyRandomList(struct Node* head);
